
public class Java_1 {
	public static void main(String[] args) {
		String a = "12345632452";
		String b = "2";
		int d = 0;
		for (int i = 0; i < a.length(); i++) {
			int c = a.indexOf(b, i);
			if (c != -1) {

				d++;
				i = c;
			}

		}
		System.out.println(d);
		// System.out.println(a.length());
	}
}
